package com.heima.behavior;

import com.heima.model.common.constants.article.HotArticleConstants;
import org.springframework.amqp.core.Queue;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class BehaviorApplication {
    public static void main(String[] args) {
        SpringApplication.run(BehaviorApplication.class, args);
    }

    @Bean
    Queue hotArticleQueue(){
        return new Queue(HotArticleConstants.HOT_ARTICLE_SCORE_BEHAVIOR_QUEUE);
    }
}
